<style>
    #dict-view {
        padding: 20px 25px 25px 0;
    }

    #dict-view .layui-treeSelect .ztree li a, .ztree li span {
        margin: 0 0 2px 3px !important;
    }
</style>
<div class="layui-fluid" id="dict-view">
    <form class="layui-form" action="" lay-filter="dict-view-form">
                <div class="layui-form-item">
                    <label class="layui-form-label zzdz-form-item-require">字典类型：</label>
                    <div class="layui-input-block">
                        <input type="text" name="type" autocomplete="off" class="layui-input" readonly>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label zzdz-form-item-require">描述：</label>
                    <div class="layui-input-block">
                        <input type="text" name="description" autocomplete="off" class="layui-input" readonly>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label zzdz-form-item-require">备注：</label>
                    <div class="layui-input-block">
                        <input type="text" name="remarks" autocomplete="off" class="layui-input" readonly>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label zzdz-form-item-require">创建时间：</label>
                    <div class="layui-input-block">
                        <input type="text" name="createTime" autocomplete="off" class="layui-input" readonly>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label zzdz-form-item-require">更新时间：</label>
                    <div class="layui-input-block">
                        <input type="text" name="updateTime" autocomplete="off" class="layui-input" readonly>
                    </div>
                </div>
    </form>
</div>

<script data-th-inline="javascript">
    layui.use(['zzdz', 'form'], function () {
        var $ = layui.$,
            form = layui.form,
            dict = [[${dict}]];
        form.render();

        initDictValue();

        function initDictValue() {
            form.val("dict-view-form", {
                "type" : dict.type,
                "description" : dict.description,
                "remarks" : dict.remarks,
                "createTime" : dict.createTime,
                "updateTime" : dict.updateTime,
            });
        }
    });
</script>